package cz.uvn.orthopedy.client;

import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;

public class LoginManager {
    private LoginInfo loginInfo;
    private Panel headerPanel;

    public LoginManager(LoginInfo loginInfo) {
        this.loginInfo = loginInfo;
        initUI();
    }

    private void initUI() {
        headerPanel = new HorizontalPanel();
        headerPanel.add(new Label("You are logger as: " + loginInfo.getNickname()));
    }

    public Panel getHeaderPanel() {
        return headerPanel;
    }
}
